package com.cn.springcloudshop.service.inter;

import com.cn.springcloudshop.model.YmShopCat;
import com.cn.springcloudshop.model.YmShopCatExample;
import com.cn.springcloudshop.model.YmShopCatPOJO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: wuyanzu
 * @Date: 2018/8/13
 */
public interface CatService {
    int countByExample(YmShopCatExample example);

    int deleteByExample(YmShopCatExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YmShopCat record);

    int insertSelective(YmShopCat record);

    List<YmShopCat> selectByExample(YmShopCatExample example);

    YmShopCat selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(YmShopCat record);

    int updateByPrimaryKey(YmShopCat record);

    int deleteBatchByPK(List<Long> ids,Integer status);

    /**
    *
    * 根据父一级菜单，返回所有子菜单
    * @author wuyanzu
    * @date 2018/8/13 15:59
    * @param [parentid]
    * @return java.util.List<com.cn.springcloudshop.model.YmShopCat>
    */
    List<YmShopCatPOJO> findCatByParentId(Long parentid);
}
